package com.kob.design.adapter.object_adapter;


/**
 * @Description: 适配器类
 * @Author: fyt
 * @Date: 2024/4/16 16:15
 **/
public class SDAdapterTF implements SDCard {
    //声明适配者类
    private TFCard tfCard;

    public SDAdapterTF(TFCard tfCard) {
        this.tfCard = tfCard;
    }

    public String readSD() {
        return tfCard.readTF();
    }

    public void writeSD(String msg) {
        tfCard.writeTF(msg);
    }
}
